<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<meta charset="utf-8">
<title>贵州师范大学 - 一卡通信息</title>
<link rel="stylesheet" type="text/css" href="../css/addInfo.css">
<title>信息上传</title>
 <meta name="viewport" content="width=device-width,initial-scale=1">
</head>
<body ms-controller="addInfoVM">
<div class="header">
  <h2>欢迎来到一卡通信息页面</h2>
</div><div class="main">
<div class="content">
  <form id="signupForm" method="post" action="../FacultyStaffServlet?action=add" enctype="multipart/form-data"  >
   <div class="img">
   
    <img id="img" src="../images/photo.png">
    <div class="setPhoto" onclick="selectfile()">点击上传照片</div>
    <input name="photo" type="file" id="file" style="display: none" />
    </div>
    <label class="title">姓  名：</label><br>
    <input class="text" lable="姓名" placeholder="请输入姓名" type="text" name="username"  id="username"><br>
    <label class="title">性  别：</label><br>
    <select class="text" name="sex" id="sex">
      <option class="text" name="sex" value="男">男</option>
      <option class="text" name="sex" value="女">女</option>
    </select><br>
    <label class="title">工  号：</label><br>
    <input  class="text" lable="工号" placeholder="请输入工号" type="text"0. name="jobNumber"  id="jobNumber"><br>
    <label class="title">部  门：</label><br>
    <select class="choose1" id="select" name="department" >
    		
           <optgroup label="教师部门">教师部门</optgroup>
          	<option name="department" ms-for="(j, el in @teacherDepartmentData" 
				ms-attr="{value: el.department}" ms-text="el.department">
			</option>
           <optgroup label="学生部门">学生部门</optgroup>
           <option name="department" ms-for="(j, el in @studentDepartmentData" 
				ms-attr="{value: el.department}" ms-text="el.department">
			</option>
         
        </select>
    <!-- <input class="text" placeholder="请输入部门" lable="部门" type="text" name="department"  id="department"> --><br>
    <label class="title">身份证号:</label><br>
    <input class="text" lable="身份证号" type="text" name="IDNumber"  id="IDNumber" placeholder="你的身份证号.." ><br>
    <div class="btns "> <input type="reset" value="重置" class="btn btn1">
   <input type="button" id="submit" value="提交" class="btn" onclick="sub()"></div>
   
  </form>
</div>
 </div>
<div class="footer">  
  贵州师范大学网络中心
</div>
   
<script src="../js/jquery-3.2.1.min.js" type="text/javascript"></script>
<script src="http://static.runoob.com/assets/jquery-validation-1.14.0/dist/jquery.validate.min.js"></script>
<script src="http://static.runoob.com/assets/jquery-validation-1.14.0/dist/localization/messages_zh.js"></script>
<script type="text/javascript" type="text/javascript" src="../js/avalon-2.2.4.js"></script> 

<script type="text/javascript" type="text/javascript" src="../js/addInfo.js"></script> 

</body>
</html>